package com.geeklan.smart.ui.dialog;

import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;

import androidx.annotation.NonNull;

import com.geeklan.smart.R;
import com.geeklan.smart.databinding.DialogContentEdittextBinding;

public class ClearFoodAlertDialog extends BaseAlertDialog<DialogContentEdittextBinding> {

    public ClearFoodAlertDialog(@NonNull Context context, String title) {
        super(context);
        setTitle(title);
        mBinding.edittext.setBackground(null);
        mBinding.edittext.setText(R.string.is_clear_food);
        mBinding.edittext.setEnabled(false);
        mBinding.edittext.setTextColor(context.getResources().getColor(com.smart.base.R.color.black));
        mBinding.edittext.setGravity(Gravity.CENTER);

    }

    @Override
    protected DialogContentEdittextBinding getContentViewBinding(LayoutInflater inflater) {
        return DialogContentEdittextBinding.inflate(inflater);
    }

    public void setHint(String hint){
        mBinding.edittext.setHint(hint);
    }
}
